<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
          padding: 0;
          margin: auto;
        }
       h1{
          text-align: center;
       }
       .ss{
          width: 250px;
          height: 50px;
       }
       .ss>button{
          float: right;
       }
  </style>
</head>
<body>
    <h1>登录</h1>
    <table border="1px">
        
        <tr>
            <td>用户名</td>
            <td><input type="text" name="" value="" placeholder="请输入您的用户名" id="hao"></td>
        </tr>
        <tr>
            <td>密码</td>
            <td><input type="password" placeholder="请输入您的密码" id="mi"></td>
        </tr>
        <tr>
            <td>记住密码<input type="checkbox" id="ji"></td>
            <td><button onclick="aa()">登录</button></td>
        </tr>
        
            <!-- <td></td> -->
            <!-- <input type="checkbox" id="deng">自动登录 -->
        
    </table>
    <div class="ss">
        <button onclick="fan()">返回注册</button>
    </div>
    <script>
        let user = document.getElementById('hao')
        let psd= document.getElementById('mi')
        let rem = document.getElementById('ji')
        let auto = document.getElementById('deng')                             
        
        var msg = JSON.parse(localStorage.getItem("message"))

        
        function aa(){
            
            if(user.value == msg.acount && psd.value == msg.password){
                location.assign('./项目首页.html')
            }else{
                alert("账号或密码不正确")
            }
        }
        function fan(){
            
            location.assign('./项目注册.html')
        }
    </script>
</body>
</html>